package com.sikaryofficial.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品范围(用于指定用户可见商品范围)对象 goods_scope_t
 * 
 * @author qinjinyuan
 * @date 2024-10-14
 */
@Getter
@Setter
@ToString
@TableName("goods_scope_t")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GoodsScope implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 商品范围ID */
    @TableId(type = IdType.ASSIGN_ID)
    private Long goodsScopeId;

    /** 商品ID */
    private Long goodsId;

    /** 用户ID */
    private Long userId;

    /** 租户号 */
    private Integer tenantId;

    /** 乐观锁 */
    private Integer revision;

    /** 创建人 */
    private Long createdBy;

    /** 创建时间 */
    private Date createdTime;

    /** 更新人 */
    private Long updatedBy;

    /** 更新时间 */
    private Date updatedTime;

    /** 删除版本：默认为0；删除则赋值当前记录主键ID */
    private Long deletedVersion;
}
